import { computed } from 'vue'
// 计算总数
export function computedTotal(compile) {
  if(Object.is(compile)) return console.log('请传入对象')
  if(!Number(compile.count) || !Number(compile.current)) return console.log('请传入数字')
  const result = computed(() => compile.count + compile.current)
  return result
}